Puzzle Solving Using Image Processing